/*** Eclipse Class Decompiler plugin, copyright (c) 2012 Chao Chen (cnfree2000@hotmail.com) ***/
package com.qihoo.gamecenter.sdk.common.i;

import android.content.Context;
import android.content.SharedPreferences;
import android.content.SharedPreferences.Editor;
import android.preference.PreferenceManager;

public class n {
    private SharedPreferences a;

    private SharedPreferences a() {
        return this.a;
    }

    private n(Context paramContext) {
        this.a = PreferenceManager.getDefaultSharedPreferences(paramContext);
    }

    public static n a(Context paramContext) {
        return new n(paramContext);
    }

    public void a(String paramString1, String paramString2) {
        SharedPreferences.Editor localEditor = a().edit();
        localEditor.putString(paramString1, paramString2);
        localEditor.commit();
    }

    public void a(String paramString, int paramInt) {
        SharedPreferences.Editor localEditor = a().edit();
        localEditor.putInt(paramString, paramInt);
        localEditor.commit();
    }

    public void a(String paramString, boolean paramBoolean) {
        SharedPreferences.Editor localEditor = a().edit();
        localEditor.putBoolean(paramString, paramBoolean);
        localEditor.commit();
    }

    public void a(String paramString, long paramLong) {
        SharedPreferences.Editor localEditor = a().edit();
        localEditor.putLong(paramString, paramLong);
        localEditor.commit();
    }

    public String b(String paramString1, String paramString2) {
        return a().getString(paramString1, paramString2);
    }

    public int b(String paramString, int paramInt) {
        return a().getInt(paramString, paramInt);
    }

    public boolean b(String paramString, boolean paramBoolean) {
        return a().getBoolean(paramString, paramBoolean);
    }

    public long b(String paramString, long paramLong) {
        return a().getLong(paramString, paramLong);
    }
}